<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.3.1.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			#div1{
				position: absolute;
				width: 300px;
				height: 300px;
				background: #00FFFF;
				left: 10px;
				
			}
		</style>
		<script type="text/javascript">
			$(function(){
				$("#bu1").on("click",function(){
					$(this).next().next().hide(3000);//3000表示延时时间，即3000ms
				})
				$("#bu2").on("click",function(){
					$(this).next().show(3000);
				})
				$("#bu3").on("click",function(){
					$("div").fadeIn(2000);
				})
				$("#bu4").on("click",function(){
					$("div").fadeOut(2000);
				})
				$("#bu5").on("click",function(){
					$("div").slideUp(2000);
				})
				$("#bu6").on("click",function(){
					$("div").slideDown(2000);
				})
				$("#bu7").on("click",function(){
					$("div").animate({left:"300px","top":"200px"},3000)
					.animate({"top":"10px"},2000)
					.animate({"left":"10px","border-radius":"50%"},2000,function(){
						$("div").css("border","black 1px solid")
					})
				})
				$("#bu8").on("click",function(){
					$("div").stop(true,false)
				})
			})
		</script>
	</head>
	<body>
		<button type="button" id="bu3">淡入</button>
		<button type="button" id="bu4">淡出</button>
		<button type="button" id="bu5">滑上</button>
		<button type="button" id="bu6">滑下</button>
		<button type="button" id="bu7">自定义动画</button>
		<button type="button" id="bu8">停止动画</button>
		<button type="button" id="bu1">隐藏</button>
		<button type="button" id="bu2">显示</button>
		<div id="div1">
			
			
		</div>
		
	</body>
</html>
